import Home from '../views/Home.vue'
// import HomeChild from '../components/HomeChild.vue'

const routes = [
  {
    path: '/home/:id',
    props: true,
    name: 'home',
    component: Home,
    children: [
      {
        path: 'home-child',
        // name: 'home-child',
        component: () => import('../components/HomeChild.vue')
      }
    ]
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('@/components/Test.vue')
  }
]
export default routes
